<template>
	<div class="topBtn" @click="Back()">
		<uni-icons v-if="arrowShow!='close'" :color="color" type="back" size="26"></uni-icons>
		<text v-if="color" style="color: #fff;">{{title}}</text>
		<text v-else>{{title}}</text>
	</div>
</template>

<script>
	export default {
		props: ["title", "color", 'arrowShow'],

		data() {
			return {}
		},

		created() {

		},
		methods: {
			Back() {
				//uni.navigateBack()//默认delta:1
				uni.navigateBack({
					delta: 1, //返回层数，2则上上页
				})
			},


		}
	}
</script>

<style lang="less" scopde>
	.topBtn {
		display: flex;
		align-items: center;
		height: 128rpx;
		width: 100%;
		font-weight: 400;
		font-size: 36rpx;
		font-weight: bold;
		padding: 50rpx 0 0 30rpx;
		box-sizing: border-box;
		background-color: #fff;
		position: fixed;
		z-index: 99;
		top: 0;
	}
</style>